package com.google.shop.product.search.controller;

import com.google.shop.product.common.utils.MR;
import com.google.shop.product.search.service.AmazonService;
import com.google.shop.product.search.service.JdService;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping({"/search"})
@RestController
/* loaded from: app.jar:BOOT-INF/classes/com/google/shop/product/search/controller/SearchController.class */
public class SearchController {
    @Autowired
    AmazonService amazonService;
    @Autowired
    JdService jdService;

    @GetMapping({"/findAmazonPage"})
    public MR findAmazonPage(String name, Integer pageNum) throws IOException {
        return this.amazonService.FindAmazonPage(name, pageNum, "", "");
    }

    @GetMapping({"/findJdPage"})
    public MR findJdPage(String name, Integer pageNum) throws IOException {
        return this.jdService.FindJdPage(name, pageNum);
    }
}
